package cn.e4j.modular.crm.entity;

import cn.e4j.core.typewrap.PO;
import com.baomidou.mybatisplus.annotation.*;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDate;
import java.util.Date;

/**
 * <p>
 *
 * </p>
 *
 * @author shixc
 * @since 2019-02-01
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("MMRV_T")
public class MmrvT extends PO<MmrvT> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "MMRVENT", type = IdType.INPUT)
    private String MMRVENT;

    private String MMRVDOCNO;

    private BigDecimal MMRVSEQ;

    private String MMRVDOCDATE;

    private String MMRV001;

    private BigDecimal MMRV002;
    private String MMRV003;

    private String MMRV004;
    private BigDecimal MMRV005;
    private String MMRV006;
    private String MMRV007;
    private String MMRV008;
    private String MMRV009;

    private String MMRV010;
    private String MMRV011;
    private String MMRV012;
    private String MMRV013;
    
    private String MMRV100;
    private String MMRV101;
    private String MMRV102;
    private String MMRV103;
    private String MMRV104;

    private String MMRVACTI;
    @TableField(fill = FieldFill.INSERT)
    private String MMRVUSER;

    @TableField(fill = FieldFill.INSERT)
    private String MMRVGRUP;

    @TableField(fill = FieldFill.UPDATE)
    private String MMRVMODU;

    @TableField(fill = FieldFill.INSERT)
    private String MMRVTIME;

    @TableField(fill = FieldFill.INSERT)
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDate MMRVDATE;

    @TableField(fill = FieldFill.INSERT)
    private String MMRVORIG;

    @TableField(fill = FieldFill.INSERT)
    private String MMRVORIU;


    @Override
    protected Serializable pkVal() {
        return this.MMRVENT;
    }

}
